import javax.swing.*;

public class GUIComponents {
    public static void main(String[] args) {
        JButton jbtOK = new JButton("Labi");
        JButton jbtCancel = new JButton("Slikti");
        JLabel jlblName = new JLabel("Get lost");
        JTextField jtfName = new JTextField("Klac klac...");
        JCheckBox jchkBold = new JCheckBox("Pliks");
        JCheckBox jchkItalic = new JCheckBox("Šķībs");
        JRadioButton jrdRed = new JRadioButton("Pofig");
        JRadioButton jrdBlue = new JRadioButton("Te tāpat");
        JComboBox jcboColor = new JComboBox(new String[]{"Man",
            "kaut", "kā", "vienalga"});
        JPanel panel = new JPanel();
        panel.add(jbtOK);
        panel.add(jbtCancel);
        panel.add(jlblName);
        panel.add(jtfName);
        panel.add(jchkBold);
        panel.add(jchkItalic);
        panel.add(jrdRed);
        panel.add(jrdBlue);
        panel.add(jcboColor);
        
        JFrame frame = new JFrame();
        frame.add(panel);
        frame.setTitle("Piemērs");
        frame.setSize(450, 100);
        frame.setLocation(200, 200);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }
}